


typedef struct{
	unsigned char* cmd;
	unsigned char* res;
	struct process* notify;
}sWifiCmd;

#define		wifisend_cmd(Process,cmd,i);		process_start(&Process, (process_data_t)&cmd); 				\
												while(1){													\
													PROCESS_WAIT_EVENT();									\
													if(ev == PROCESS_EVENT_CMDEND){							\
														if( (*(uint8_t*)data) == 1){						\
															break;											\
														}else if(i == 0){									\
															break;											\
														}else{												\
															process_start(&Process, (process_data_t)&cmd); 	\
														}													\
														i--;												\
													}														\
												}  

extern struct process WifiInit_Process;
extern struct process WifiCMD_Process;
extern struct process Wifi_GetIPD_Process;	
extern struct process Wifi_SetNet_Process;	
extern struct process Wifi_UnSetNet_Process;	
												

void set_wificmdval(sWifiCmd* WifiCmd, char* cmd, char* cmd_res, struct process* notify);												
